Skip to content

HYPERFLEET-879 - feat: add Go tooling pre-commit hooks via Make targets#3

Open
rafabene wants to merge 1 commit intoopenshift-hyperfleet:mainfrom
rafabene:HYPERFLEET-879-bingo-aware-go-hooks
Open

HYPERFLEET-879 - feat: add Go tooling pre-commit hooks via Make targets#3
rafabene wants to merge 1 commit intoopenshift-hyperfleet:mainfrom
rafabene:HYPERFLEET-879-bingo-aware-go-hooks

Conversation

@rafabene
Copy link
Copy Markdown
Contributor

@rafabene rafabene commented Apr 8, 2026

Summary

  • Add three Go tooling pre-commit hooks: golangci-lint, gofmt, go-vet
  • Hooks use language: system and delegate to the consuming repo's existing Make targets (make lint, make gofmt, make go-vet), leveraging bingo-managed tool resolution already in place
  • commitlint uses language: golang as it has custom validation logic

Depends on: #2

Acceptance Criteria

  • Hooks cover: golangci-lint, gofmt, go vet
  • Hooks delegate to existing Make targets via language: system
  • Documentation for hook configuration in consuming repos

Test Plan

  • go test -race ./... passes
  • go vet ./... passes
  • gofmt -l . clean on changed files

@rafabene rafabene changed the base branch from HYPERFLEET-878-go-implementation to main April 8, 2026 17:16
@rafabene rafabene force-pushed the HYPERFLEET-879-bingo-aware-go-hooks branch from 65296e6 to b003bba Compare April 14, 2026 18:40
@rafabene rafabene marked this pull request as ready for review April 14, 2026 18:40
@rafabene rafabene force-pushed the HYPERFLEET-879-bingo-aware-go-hooks branch from b003bba to 143aa0c Compare April 14, 2026 18:51
Comment thread .pre-commit-hooks.yaml Outdated
@rafabene rafabene force-pushed the HYPERFLEET-879-bingo-aware-go-hooks branch from 143aa0c to 4856bba Compare April 15, 2026 12:39
Use language: system to delegate golangci-lint, gofmt, and go-vet hooks
to the consuming repo's existing Make targets, leveraging bingo-managed
tool resolution already in place. Only commitlint remains as
language: golang since it has custom validation logic.
@rafabene rafabene force-pushed the HYPERFLEET-879-bingo-aware-go-hooks branch from 4856bba to 2e9e399 Compare April 15, 2026 12:41
@rafabene rafabene changed the title HYPERFLEET-879 - feat: add bingo-aware Go tooling hooks HYPERFLEET-879 - feat: add Go tooling pre-commit hooks via Make targets Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants